package edu.neusoft.yuejian_09.service;

import edu.neusoft.yuejian_09.bean.Collection;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by 爽 on 2017/11/1.
 */

public interface CollectService {

    //收藏、取消收藏活动接口
    @GET("collect/userCollectActivity")
    Call<Collection> userCollectActivity(
            @Query("user_id") int user_id,
            @Query("activity_id") int activity_id
    );
    //收藏、取消收藏比赛接口
    @GET("collect/userCollectContest")
    Call<Collection> userCollectContest(
            @Query("user_id") int user_id,
            @Query("contest_id") int contest_id
    );
    //收藏、取消收藏大师接口
    @GET("collect/userCollectMaster")
    Call<Collection> userCollectMaster(
            @Query("user_id") int user_id,
            @Query("master_id") int master_id
    );
    //收藏、取消收藏用户接口
    @GET("collect/userCollectUser")
    Call<Collection> userCollectUser(
            @Query("user_id") int user_id,
            @Query("usered_id") int usered_id
    );

    //判断是否收藏接口
    @GET("collect/isCollected")
    Call<Collection> isCollect(
            @Query("user_id") int user_id,
            @Query("id") int id,//user,activity,contest,master的id
            @Query("flag") int flag
    );
}
